﻿@model CloudFranceTriple.WebRole.Models.UserProfile
<div class="content-padding">
    <section id="manageUserProfile">
        <h1>@CloudFranceTriple.WebRole.Properties.Resources.UserProfileManageTitle</h1>
        <h3>
            <a style="margin:0;padding:0;" href="/Account/Manage" title="@CloudFranceTriple.WebRole.Properties.Resources.AccountManageTitle">
                @CloudFranceTriple.WebRole.Properties.Resources.AccountManageTitle
            </a>
        </h3>
        <p class="message-success">@ViewBag.StatusMessage</p>

        @using (Html.BeginForm(new { area = "" }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary()
                      
            <div style="border: 1px solid #fffffe; padding: 10px; width: 432px; border-radius: 8px;">
                <fieldset>
                    <legend>@CloudFranceTriple.WebRole.Properties.Resources.UserProfileManageTitle</legend>

                    <p>@CloudFranceTriple.WebRole.Properties.Resources.AccountManageTitle2 <strong>@Html.DisplayFor(model => model.UserName)</strong>.</p>

                    @Html.HiddenFor(model => model.UserId)
                    @Html.HiddenFor(model => model.UserName)
                    @Html.HiddenFor(model => model.LastAddressIp)
                    @Html.HiddenFor(model => model.LastRequestDate)
                    @Html.HiddenFor(model => model.InitialAddressIp)
                    @Html.HiddenFor(model => model.ForumMessagePostedCounter)

                    <div class="editor-label">
                        @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterBirthday
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Birthday, "TemplateUserDate")
                        @Html.ValidationMessageFor(model => model.Birthday)
                    </div>

                    @if (User.IsInRole("RoleHR"))
                    {
                        <div class="editor-label">
                            @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterShowInBirthdayList
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.ShowInBirthdayList)
                            @Html.ValidationMessageFor(model => model.ShowInBirthdayList)
                        </div>

                        <div class="editor-label">
                            @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterShowInNonAdminList
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.ShowInNonAdminList)
                            @Html.ValidationMessageFor(model => model.ShowInNonAdminList)
                        </div>
                    }
                    else
                    {
                        @Html.HiddenFor(model => model.ShowInBirthdayList)
                        @Html.HiddenFor(model => model.ShowInNonAdminList)
                    }

                    <div class="editor-label">
                        @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterEmail
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Email)
                        @Html.ValidationMessageFor(model => model.Email)
                    </div>

                    <div class="editor-label">
                        <a href="https://fr.gravatar.com/" target="_blank">
                            @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterGravatar
                        </a>
                        <br />
                        <a href="http://battlelog.battlefield.com/bf3/fr/profile/edit/" target="_blank">
                            @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterGravatar2
                        </a>
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Gravatar)
                        @Html.ValidationMessageFor(model => model.Gravatar)
                    </div>

                    <div class="editor-label">
                        @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterLocation
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Location)
                        @Html.ValidationMessageFor(model => model.Location)
                    </div>

                    <div class="editor-label">
                        @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTimeZone
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("TimeZone",String.Empty)
                        @Html.ValidationMessageFor(model => model.TimeZone)
                    </div>

                    <div class="editor-label">
                        @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterCulture
                    </div>
                    <div class="editor-field">
                        <select name="Culture" id="Culture">
                            <option selected="selected" value="fr-fr">français - (France)</option>
                        </select>
                    </div>

                    <div class="editor-label">
                        @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTheming
                    </div>
                    <div class="editor-field">
                        <select name="Theming" id="Theming">
                            <option selected="selected" value="default">par défaut</option>
                        </select>
                    </div>
                    <br />
                    @{Html.RenderPartial("_ForumSignatureEdit"); }
                    <br />
                    <input type="submit" 
                value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit" />
                    <br />
                    <br />
                </fieldset>
            </div>
        }
    </section>
</div>
